<template>
  <div class="bread-crumb">
    <el-breadcrumb separator="/">
      <template v-for="item in breadItemData" :key="item.name">
        <el-breadcrumb-item>{{ item.name }}</el-breadcrumb-item>
      </template>
    </el-breadcrumb>
  </div>
</template>

<script setup lang="ts">
import { defineProps, withDefaults } from 'vue';
import { IBreadType } from './type';
const props = withDefaults(
  defineProps<{
    breadItemData: IBreadType[];
  }>(),
  {
    breadItemData: () => {
      return [
        {
          name: '面包屑获取不到数据'
        }
      ];
    }
  }
);
</script>

<style scoped></style>
